<div class="container"> 
	<div class="row"> 
		<div class="panel panel-info">
			<div class="panel-heading">
				<div class="panel-title">Whois Search</div>
			</div>
			<div class="panel-body">
				
				<div class="row">
					<div class="col-md-12">
						<div class="well">
                        	<div class="div_bottom_border">
								<h1 >Whois Lookup for google.com</h1>
							</div>
                           <span>Domain Name:</span><span style="text-transform:uppercase; padding-left:5px;"><?php echo  $response['GetWhoisContacts']['domainname']['$']; ?></span><br />
                           <span>Registry Domain ID:</span><span></span><br />
                           <span>Registrar WHOIS Server:</span><span>WHOIS.SPEEDHOST.COM</span><br />
                           <span>Registrar URL:</span><span>WWW.SPEEDHOST.COM</span><br />
                           <?php 
						   for($i=0; $i<count($response['GetWhoisContacts']['contacts']['contact']); $i++){
						   $lookup= $response['GetWhoisContacts']['contacts']['contact'][$i]; ?>
						   
                          <span><?php echo $lookup['@ContactType']; ?> Name :</span><span><?php echo $lookup['FName'] ?></span><br />
                          <span><?php echo $lookup['@ContactType']; ?> Organization :</span><span></span><br />
                          <span><?php echo $lookup['@ContactType']; ?> Street :</span><span><?php echo $lookup['Address1'] ?></span><br />
                          <span><?php echo $lookup['@ContactType']; ?> Street :</span><span><?php if(!empty($lookup['Address2'])){ echo $lookup['Address2']; } ?></span><br />
                          <span><?php echo $lookup['@ContactType']; ?> City :</span><span><?php if(!empty($lookup['City'])){ echo $lookup['City']; } ?></span><br />
                          <span><?php echo $lookup['@ContactType']; ?> State/Province :</span><span><?php if(!empty($lookup['StateProvince'])){ echo $lookup['StateProvince']; } ?></span><br />
                          <span><?php echo $lookup['@ContactType']; ?> Postal Code:</span><span><?php if(!empty($lookup['PostalCode'])){ echo $lookup['PostalCode']; } ?></span><br />
                          <span><?php echo $lookup['@ContactType']; ?> Country:</span><span><?php if(!empty($lookup['Country'])){ echo $lookup['Country']; } ?></span><br />
                         
						  <?php //echo"<pre>";
						  //print_r($data);
						  } ?>
                           
						</div>
					</div>
				</div>	
			</div>
		</div>
	</div>
</div>
